#include "WPILib.h"
#include "XboxJoystick.hpp"

XboxJoystick::XboxJoystick(int joystickPort) :
	Joystick(joystickPort)
{
}

XboxJoystick::~XboxJoystick()
{
}

double XboxJoystick::GetAxisValue(XboxAxis axis)
{
	return GetRawAxis(axis);
}

bool XboxJoystick::GetButton(XboxButton button)
{
	return GetRawButton(button);
}

bool XboxJoystick::GetRightTrigger()
{
	return GetRawAxis(3) > .5;
}

bool XboxJoystick::GetLeftTrigger()
{
	return GetRawAxis(3) < -.5;
}
